package com.oraycn.esbasic.models;

public class Tuple {
    /**
     * 两个元素的元组，用于在一个方法里返回两种类型的值
     */
    public static class TwoTuple<A, B> {
        public A Item1;
        public B Item2;

        public TwoTuple(){}
        public TwoTuple(A a, B b) {
            this.Item1 = a;
            this.Item2 = b;
        }
    }

    public static class ThreeTuple<A, B,C> {
        public A Item1;
        public B Item2;
        public C Item3;

        public ThreeTuple(){}
        public ThreeTuple(A a, B b, C c) {
            this.Item1 = a;
            this.Item2 = b;
            this.Item3 = c;
        }
    }
} 
